//
//  BCPaidSuccesViewController.m
//  BangcaiBuy
//
//  Created by lsy on 16/6/13.
//  Copyright © 2016年 BCB. All rights reserved.
//

#import "BCPaidSuccesViewController.h"

@implementation BCPaidSuccesViewController

-(void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
    self.navigationController.navigationBar.translucent = NO;
    UINavigationBar *navigationBar = self.navigationController.navigationBar;
    [navigationBar setBackgroundImage:[UIImage imageNamed:@"lv"]
                       forBarPosition:UIBarPositionAny
                           barMetrics:UIBarMetricsDefault];
    [navigationBar setShadowImage:[UIImage new]];
    [[BCShopCarManager sharedInstance] hideShopWindow];
    if (!self.rdv_tabBarController.tabBarHidden) {
        [[self rdv_tabBarController] setTabBarHidden:YES animated:NO];
    }
}

- (void)getView
{
    self.title = @"";
    self.payView = [[BCPaySucView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:self.payView];
    [self.payView.checkOrder addTarget:self action:@selector(gocheck) forControlEvents:UIControlEventTouchUpInside];
    [self.payView.backHome addTarget:self action:@selector(goHome) forControlEvents:UIControlEventTouchUpInside];
    
}

- (void)gocheck
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)goHome
{
    [self.rdv_tabBarController setSelectedIndex:0];
    [self.navigationController popToRootViewControllerAnimated:YES];
}

@end
